#include<iostream>
using namespace std;

namespace test2 {
	int main2() {

		int grade;
		cin >> grade;
		cout << ((grade >= 60) ? "pass" : "fial") << endl;
		cout << (grade >= 60) ? "pass" : "fial";
		//cout << grade >= 60 ? "pass" : "fail";
		return 0;
	}
}